<?php if (!defined('LOTUSHER_INC_PATH')) exit(); $nav_arr = array(); foreach ($Categorys as $k=>$v){ if($v['parentid']==0 && $v['status']==1 && $v['ismenu'] >= 1){ $subnavs = array(); foreach ($Categorys as $key=>$val){ if($val['parentid']==$v['id'] && $val['status']==1 && $val['ismenu'] >= 1){ $subnavs[] = $val; } } $v['subnavs'] = $subnavs?$subnavs:''; $nav_arr[$v['id']] = $v; } } $sd = M("SlideData"); unset($map); $map['lang'] = LANG_ID; $map['status'] = 1; $map['fid'] = 1; $logo = $sd->where($map)->order("listorder DESC, id DESC")->find(); $map['fid'] = 2; $favicon = $sd->where($map)->order("listorder DESC, id DESC")->find(); $where['fid'] = 4; $body_bg = M("SlideData")->where($where)->order('listorder desc , id desc')->find(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
    <meta content="zh-CN" http-equiv="Content-Language" />
   <title><?php echo ($seo_title); ?>-<?php echo ($site_name); ?></title>
<meta name="keywords" content="<?php echo ($seo_keywords); ?>" />
<meta name="description" content="<?php echo ($seo_description); ?>" />
<meta name="author" content="Lotusher.com">
<link rel="shortcut icon" href="<?php echo $favicon['pic'];?>" />
<link rel="apple-touch-icon" href="<?php echo $favicon['pic'];?>" />
    <meta content="1GdE-bOwtaftzUH2-g1IcuNL7VYPf7t0qkI0vSpSPo0" name="google-site-verification" />
    <meta property="qc:admins" content="1041326176652172176375" />
    <script src="<?php echo ($themeDir); ?>public/src/jquery-3.1.0.min.js"></script>
    <link rel="stylesheet" type="text/css" href="<?php echo ($themeDir); ?>public/src/global.css" media="all" />
</head>

<body>
    <!-- top -->
    <div class="header-box">
        <div class="wrap">
              <?php  unset($where); $where['lang'] = LANG_ID; $where['status'] = 1; $where['fid'] = 1; $slides = M("SlideData")->where($where)->order('listorder desc , id desc')->select(); ?>
            <h1 class="logo" title="">
               <img src="<?php echo $slides[0]['small']?>" width="100" height="100" />
             </h1>
             <ul class="headr-nav-box" id="headr-nav-box">
           <?php  foreach($nav_arr as $cat){ ?>
            
             <li class="first-name">
                    <a href="<?php echo uri($cat);?>" ><?php echo $cat['catname']; ?></a>
                   <?php  if(!empty($cat['subnavs'])){?>
                    <ul class="nav-son">
                     
                            <?php  foreach($cat['subnavs'] as $ncat){ ?>
                           	
                            <li class="second-name"><a href="<?php echo uri($ncat);?>"><?php echo $ncat['catname']; ?></a></li>
                            <?php } ?>
            
                    </ul>
                     <?php  }?>
                </li>
                <?php  }?>    
                </ul>
        </div>
    </div>
    <style type="text/css">
.right-section .item{ width: 167px;  background: #FFF; margin: 9px; margin-bottom: 0; float: left; text-align: center; }
.right-section .item:nth-child(4n+1){ clear:both;}
.right-section .item .tc{ width: 165px; height: 165px; border: 1px solid #DDD;}
.right-section .item a.clearfix{ padding-top: 5px;}
.right-section .item p{ line-height: 1.3;}
.right-section .item p span{ color:#C00;}
.right-section .item:hover *{ border-color:#007ac7; color:#007ac7;}
.top-slider{
    width:940px;
    height:410px;
}
.item-box .item-hot-banner {
    text-align: center;
    padding-top: 0px!important;
    height: 410px;
    width: 100%;
}
</style>
<?php $foot_section = M("Blockquote")->find(2);?>
<?php $endurl =explode('_',$_SERVER['REQUEST_URI']);$rmparrs = explode('.', $endurl[1])?>
<?php $foot_section = M("category")->where('id='.$rmparrs[0])->find(); ?>
  <div class="new-ist-box item-info-box">
        <!-- 当前位置 -->
        <div class="wrap">
            <div class="crumb-location">
            <?php if($foot_section['parentid']!=0){ $parent = M("category")->where('id='.$foot_section['parentid'])->find();?>
                 <span class="link">首页</span>
                  <span class="link">></span>
                 <a href="<?php echo ($parent['url']);?>"><?php echo $parent['catname']; ?></a> 
                  <span class="link">></span>
                  <span class="txt"><?php echo $foot_section['catname']; ?></span>
              <?php }else{ ?>  
               	<span class="link">首页</span>
               	 <span class="link">></span>
                    <span class="txt"><?php echo $foot_section['catname']; ?></span>
               <?php }?>      
            </div>
        </div>
       
<?php  if($foot_section['parentid']!=0){ $map['parentid'] = array('in',$foot_section['parentid']); }else{ $map['parentid'] = array('in',$foot_section['id']); } $categorys = M("category")->where($map)->select(); ?>
		<div class="wrap item-box" style="margin-top: 40px;">
            <div class="item-nav">
                <h6 class="nav-title">
                <div style="width:212px;height:98px;background-image: url('<?php echo ($themeDir); ?>public/src/img/item_01.jpg');font:normal 18px/49px 'Microsoft YaHei';line-height:98px;text-align:center;font-size:34px;
    color: #333333;    
"><?php if($foot_section['parentid']!=0){ echo $parent['catname'];}else{ echo $foot_section['catname'];} ?></div>
<!--                     <img src="<?php echo ($themeDir); ?>public/src/img/item_01.jpg" width="212" height="98" /> -->
                </h6>
                <div style="height:20px;background: #f5f5f5;"></div>
                <div class="nav-list">
                <ul>
                <?php foreach ($categorys as $k=>$v){?>
    					
                        <li><a href="<?php echo uri($v);?>" ><?php echo $v['catname']; ?><i></i></i></a></li>
                        <?php } ?> 
                     
                    </ul>
                </div>
            </div>
            
<div class="item-details item-list">
                <div class="item-hot-banner">
                    <!-- 轮播背景 -->
    <div class="top-slider">
        <ul class="slider-banner">
        
            <li style="background: transparent url(<?php echo ($themeDir); ?>public/src/img/slider_01.jpg) no-repeat center top;width: 100%;">
                <a href="#" target="_blank" title="">
           <img src="<?php echo ($themeDir); ?>public/src/img/ico_public.png" width="100%" height="653" border="0"/>
        </a>
            </li>
            <li style="background: transparent url(<?php echo ($themeDir); ?>public/src/img/slider_02.jpg) no-repeat center top;width: 100%;">
                <a href="#" target="_blank" title="">
           <img src="<?php echo ($themeDir); ?>public/src/img/ico_public.png" width="100%" height="653" border="0"/>
        </a>
            </li>
            <li style="background: transparent url(<?php echo ($themeDir); ?>public/src/img/slider_03.jpg) no-repeat center top;width: 100%;">
                <a href="#" target="_blank" title="">
           <img src="<?php echo ($themeDir); ?>public/src/img/ico_public.png" width="100%" height="653" border="0"/>
        </a>
            </li>
        </ul>
        <!-- 页码 -->
        <div class="slider-pager" id="bx-pager">
            <a href="" class="pager-links" data-slide-index="0" hideFocus="true">
            <img src="<?php echo ($themeDir); ?>public/src/img/ico_public.png" width="16" height="16" border="0"/>
        </a>
            <a href="" class="pager-links" data-slide-index="1" hideFocus="true">
          <img src="<?php echo ($themeDir); ?>public/src/img/ico_public.png" width="16" height="16" border="0"/>
        </a>
            <a href="" class="pager-links" data-slide-index="0" hideFocus="true">
           <img src="<?php echo ($themeDir); ?>public/src/img/ico_public.png" width="16" height="16" border="0"/>
        </a>
        </div>
        <!-- 页码 -->
    </div>
    <!-- 轮播背景 -->
<div id="slideBox" class="slideBox" style="display:none">
	<span class="prev"></span>
	<span class="next"></span>
	<div class="hd">
		<ul>
			<?php  $i = 1; foreach($slides as $slide){ ?>
			<li><?php echo $i; ?></li>
		<?php $i++; } ?>
		</ul>
	</div>
	<div class="bd">
		<ul>
		<?php  foreach($slides as $slide){ ?>
			<li><a href="<?php echo $slide['link']; ?>" target="_blank">
				<img src="<?php echo $slide['pic']; ?>" alt="<?php echo $slide['title']; ?>" title="<?php echo $slide['title']; ?>" />				
			</a></li>
		<?php } ?>
		</ul>
	</div>
</div>
                </div>
                <div class="item-list-title">
                    热销产品
                </div>
                <input type="hidden" id='hiddenpage' value='<?php echo $page?>'>
                <div class="item-list-list">
                    <ul class="list">
                    <?php $paperno = 10; $count = count($list); $page = empty($_GET['page'])?1:$_GET['page']; $pages = intval(count($list)/$paperno)+1;$start = ($page-1)*$paperno;$end=($page)*$paperno+1; if($end>$count){ $end=$count; }?>
                     <?php for($j=$start;$j<$end;$j++ ){ ?>
                   
                        <li>
                            <div class="pic">
                                <a href="<?php echo uri($list[$j]); ?>"><img src="<?php echo $list[$j]['thumb']; ?>"></a>
                            </div>
                            <div class="txt">
                                <a href="#" ><p><?php echo $list[$j]['title']; ?></p><p>
<?php echo $list[$j]['title']; ?></p><p>
价格:<span><?php echo $v['shop_price']; ?></span></p></a>
                            </div>
                        </li>
                      <?php } ?> 
                    </ul>
                  
                    <!-- 分页 -->
                    <div class="wrap page-box">
                        <div class="pages">
                            <ul class="pagination">
                            <?php  for ($i=1;$i<=$pages;$i++){?>
                                <!--   <li class="pagination-disabled pagination-prev"><a href="#">上一页</a></li> -->
                                <?php  if($page==$i){?>
                                     <li class="pagination-item pagination-item-1 pagination-item-active"><a href="?page=<?php echo $i;?>"><?php echo $i;?></a></li>
                               <?php }else{ ?>
                                   <li class="pagination-item pagination-item-1 "><a href="?page=<?php echo $i;?>"><?php echo $i;?></a></li>
                                   <?php  } ?>
                               
                               <?php }?>
<!--                                 <li class="pagination-item pagination-item-2"><a href="?page=1">2</a></li> -->
<!--                                 <li class="pagination-item pagination-item-3"><a href="#">3</a></li> -->
<!--                                 <li class="pagination-item pagination-item-4"><a href="#">4</a></li> -->
<!--                                 <li class="pagination-item pagination-item-5"><a href="#">5</a></li> -->
                                <li class="pagination-next"><a href="#"><span class="square"></span><span class="square1"></span></a></li>
                                <div class="pagination-options">
                                    <div class="pagination-options-quick-jumper">
                                        <input  id = "pagetext" type="text" value="1">
                                        <span class="pagination-options-go">跳转</span>
                                    </div>
                                </div>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
	<script>
	$(document).on('click','.pagination-options-go',function(){
		$href = location.href.split('?');
		location.href = $href[0]+'?page='+$("#pagetext").val();
	})
	</script>	
    
   
   
    <!-- 底部声明 -->
    <div class="wrap footer-wrap">
        <div class="footer-txt">
            <span class="name">创维集团有限公司版权所有</span>
            <a class="copyright" href="#" target="_blank">粤ICP备15057125号</a>
            <a href="#" target="_blank" class="about-us">联系我们</a>
            <a href="#" target="_blank" class="law-en">法律声明</a>
        </div>
        <div class="share-wrap">
            <!-- JiaThis Button BEGIN -->
            <div class="jiathis_style">
                <a class="jiathis_button_qzone"></a>
                <a class="jiathis_button_tsina"></a>
                <a class="jiathis_button_tqq"></a>
                <a class="jiathis_button_weixin"></a>
                <a class="jiathis_button_renren"></a>
                <a class="jiathis_button_xiaoyou"></a>
                <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
                <a class="jiathis_counter_style"></a>
            </div>
            <!-- JiaThis Button END -->
        </div>
    </div>
    <!-- 底部声明 -->
    <script type="text/javascript">
    var jiathis_config = {
         url:"sssss",//地址
        title: "我已经上传了我家萌主的照片奥，赶快来给他投票吧！",//标题
        summary: "我已经上传了我家萌主的照片奥，赶快来给他投票吧！",//摘要
        pic: "",//分享图片
        data_track_clickback: true

    }
    </script>
    <script src="<?php echo ($themeDir); ?>public/src/home.js"></script>
    <script src="<?php echo ($themeDir); ?>public/src/jquery.bxslider.js"></script>
    <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
</body>

</html>